<%@ page contentType="text/html; charset=utf-8" language="java" pageEncoding="utf-8"%>
<%@ page import="java.util.Date" %>
<%@ include file="/common.jsp"%>
<script type="text/javascript" language="javascript">
	var g_bReload = true;
	var nowTimer = new dream.DateInfo(new Date());
	function initCurPage()
	{
		if (g_bReload)
			window.location.reload();
		g_bReload = false;
	}
</script>
<div id="head" class="head">
	<div id="logo" class="logo"><!-- 班级 Logo -->
		<a href="/" title="Welcome"><img src="/images/logo.gif" /></a>
	</div>
	<div id="slogan" class="slogan"><!-- 班级宣传语，通过 Flash 读取一个文本文件 -->
		<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"  codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="316" height="73" title="">
			<param name="wmode" value="transparent" />
			<param name="movie" value="/images/slogan.swf" />
		    <param name="quality" value="high" />
			<embed src="/images/slogan.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="316" height="73"></embed>
		</object>
	</div>
	<div id="clockinfo" class="clockInfo"><!-- 石英时钟 -->
		<div style="float: left;">
			<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="85" height="73" title="clock">
				<param name="wmode" value="transparent" />
				<param name="movie" value="/images/clock.swf" />
				<param name="quality" value="high" />
				<embed src="/images/clock.swf" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="85" height="73"></embed>
			</object>
		</div>
		<!-- 显示当前日期及农历 -->
		<div id="dateinfo" class="dateInfo">
			<span><script type="text/javascript">
				document.write(nowTimer.toLocalString());
			</script></span><br />
			<span><script type="text/javascript">
				document.write(nowTimer.getWeek());
			</script></span><br />
			<span>农历 <script type="text/javascript">
				document.write(nowTimer.toLLocalString());
			</script></span>
		</div>
	</div>
	<div style="width:100%; clear:both;"><hr size="3" color="#808080" width="100%" style="margin-top:-2px; margin-bottom:-2px;" noshade /></div>
	<div class="menuBar">
		<div id="nevigate" class="nevigate">
			<table border="0" style="font-weight: lighter; font-size: 18px;"><tr>
				<td nowrap><a href="/">首  页</a></td>
				<td nowrap><a href="/root/mail.jsp">沟通无界</a></td>
				<td nowrap><a href="#" onclick="alert('功能正在开发中...');return false;">文采飞扬</a></td>
				<td nowrap><a href="#" onclick="alert('功能正在开发中...');return false;">我爱我班</a></td>
				<td nowrap><a href="#" onclick="alert('功能正在开发中...');return false;">展我英姿</a></td>
				<td nowrap><a href="/root/down.jsp" onclick="alert('功能正在开发中...');return false;">资源下载</a></td>
				<!-- <td nowrap><a href="/root/myspace.jsp" onclick="hasLogin(this);return false;">我的地盘</a></td>-->
			</tr></table>
		</div>
		<div id="promptinfo" class="promptInfo">
			<span id="prompt_user">
			<%
				boolean isNew = session.isNew();
				UserType user = (UserType)session.getAttribute("user");
				if (null != user)
					out.print("<a href='/root/myspace.jsp'>" + user.getName() + "</a>, ");
				else
					out.print("<a>访客</a>,");
			%>
			</span><span id="prompt_greeting"><!-- salutatory  --></span><span id="prompt_date"><!-- dateinfo --></span>
			<script type="text/javascript" language="javascript">
				document.write(nowTimer.getGreeting());
			</script>
			<span id="assistmenu" class="assistMenu">
			<%if (isNew || (!isNew && null == user)){%>
				<a id="loginbutton" href="javascript:openLoginFrame(this);">登陆</a>|<a href="#" title="取回密码">忘记密码</a>
				<%}else{%>
				<a id="logoutbutton" href="javascript:logout(this);">注销</a>|<a href="#" title="修改密码">我的资料</a>
				<%}%>
			</span>
		</div>
	</div>
</div>